package com.summer.data.connection;

import java.sql.Connection;

public class TransactionDef {

    public enum ISOLATION {
        DEFAULT(java.sql.Connection.TRANSACTION_NONE),
        READ_UNCOMMITTED(Connection.TRANSACTION_READ_UNCOMMITTED),
        READ_COMMITTED(java.sql.Connection.TRANSACTION_READ_COMMITTED),
        REPEATABLE_READ(java.sql.Connection.TRANSACTION_REPEATABLE_READ),
        SERIALIZABLE(java.sql.Connection.TRANSACTION_SERIALIZABLE);

        int value;

        ISOLATION(int value) {
            this.value = value;
        }

        public int getValue() {
            return value;
        }
    }


    public ISOLATION isolation = ISOLATION.DEFAULT;

    public Integer timeOut;

}
